package com.conph.moring.core;

import java.lang.reflect.Method;

public abstract class MecIntercepter {
	private Class<?> klass;
	private Method method;
	
	protected abstract boolean before(Object[] args);
	protected abstract Object after(Object result);
	protected abstract void dealException(Throwable e);
	
	public void setKlass(Class<?> klass) {
		this.klass = klass;
	}
	
	public void setMethod(Method method) {
		this.method = method;
	}
	
	public Class<?> getKlass() {
		return klass;
	}
	
	public Method getMethod() {
		return method;
	}
	
}
